import { apiHost } from './config'
export const withPrefix = (url, prefix = '') => {
  const prefixStr = prefix || apiHost
  return `${prefixStr}${url}`
}

export const Method = {
  POST: 'post',
  GET: 'get'
}
